import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/third_party_contractor_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/third_party_contractor_entity.g.dart';

/// 第三方承包商详情实体
@JsonSerializable()
class ThirdPartyContractorEntity {
  ThirdPartyContractorEntity();

  factory ThirdPartyContractorEntity.fromJson(Map<String, dynamic> json) => $ThirdPartyContractorEntityFromJson(json);
  String? address = '';
  String? blacklistReason = '';
  String? businessLicense = '';
  String? companyCode = '';
  String? createBy = '';
  String? createById = '';
  String? createDate = '';
  String? deleted = '';
  String? districtCode = '';
  String? headPersonId = '';
  String? headPersonName = '';
  String? headPersonPhone = '';
  String? id = '';
  String? periodOfServiceEnd = '';
  String? periodOfServiceStart = '';
  String? status = '';
  String? thirdCode = '';
  String? thirdKind = '';
  String? thirdKindLabel = '';
  String? thirdName = '';
  String? thirdType = '';
  String? thirdTypeLabel = '';
  String? updateBy = '';
  String? updateById = '';
  String? updateDate = '';
  String? uploadCompanyCode = '';

  ///	到位率
  int? arrivalRate = 0;

  ///	管控率
  int? controlRate = 0;
  List<String>? businessLicenseList = [];

  Map<String, dynamic> toJson() => $ThirdPartyContractorEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
